using System.Buffers;

namespace Letter.IO.Buf;

public static class BufferExtension
{
    public static IBufferWriter<T> ToBufferWriter<T>(this IWritableBuffer<T> writer)
    {
        return (IBufferWriter<T>)writer;
    }
}